import 'package:finance_app/generated/json/base/json_convert_content.dart';
import 'package:finance_app/generated/json/base/json_field.dart';
import 'package:finance_app/src/entities/ocr_attachment_entity.dart';
import 'package:finance_app/src/entities/setting_data_entity.dart';

class ServicesEntity with JsonConvert<ServicesEntity> {
  @JSONField(name: "data_type")
  String dataType;
  int id;
  @JSONField(name: "company_id")
  int companyId;
  @JSONField(name: "category_id")
  dynamic categoryId;
  String name;
  String code;
  String description;
  @JSONField(name: "enable_sell")
  int enableSell;
  @JSONField(name: "currency_code")
  String currencyCode;
  @JSONField(name: "tax_id")
  int taxId;
  num price;
  @JSONField(name: "is_tax_inclusive")
  int isTaxInclusive;
  @JSONField(name: "enable_purchase")
  int enablePurchase;
  @JSONField(name: "purchase_currency_code")
  String purchaseCurrencyCode;
  @JSONField(name: "purchase_price")
  num purchasePrice;
  @JSONField(name: "purchase_tax_id")
  int purchaseTaxId;
  @JSONField(name: "purchase_is_tax_inclusive")
  int purchaseIsTaxInclusive;
  @JSONField(name: "is_activated")
  int isActivated;
  int enabled;
  @JSONField(name: "created_at")
  String createdAt;
  @JSONField(name: "updated_at")
  String updatedAt;

  SettingDataTax tax;
  @JSONField(name: "purchase_tax")
  SettingDataTax purchaseTax;

  @JSONField(name: "discount_type")
  String discountType;
  @JSONField(name: "discount_value")
  num discountValue;

  List<String> categories;

  List<OcrAttachmentEntity> attachments;
}
